home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1990-12-30 | 1007 b | 26 lines |
- 10 REM This subroutine creates an assembly language routine for clearing a
- 20 REM window. The position of the window is set by the hex position numbers
- 30 REM as marked below. Run this routine at startup then invoke it within
- 40 REM the program by: clrw=varptr(wndw%(1)):call clrw
- 50 REM
- 60 REM *** Create Assembly Language Routine For Clearing Window ***
- 70 REM
- 80 RESTORE:DEF SEG :REM set data segment to basics data seg
- 90 I=0:JC=0
- 100 DIM WNDW%(26)
- 110 MEM%=VARPTR(WNDW%(1))
- 120 FOR I=1 TO 26
- 130 READ JC
- 140 POKE MEM%,JC
- 150 MEM%=MEM%+1
- 160 NEXT
- 170 RETURN :REM return from this subroutine
- 180 REM
- 190 REM *** Data For Window Clearing Routine ***
- 200 REM top top bottom
- 210 REM DEFINTrow DEFINTcol DEFINTrow
- 220 DATA &h50,&h53,&h51,&h52,&h30,&hc0,&hb5,&h02,&hb1,&h00,&hb6,&h17,&hb2
- 230 DATA &h4f,&hb7,&h07,&hb4,&h06,&hcd,&h10,&h5a,&h59,&h5b,&h5b,&hca,&h00,&h90
- 240 REM ^bottom ^attrib ^scroll
- 250 REM col up
-